package com.city.repository.party;

import com.city.domain.party.ReportGroup;
import com.city.domain.party.ReportPerson;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ReportGroupRepository extends JpaRepository<ReportGroup,Integer>{
    //分页查询
    @Query(value = "select * from report_group limit ?1,?2",nativeQuery = true)
    List<ReportGroup> findAllByPage(Integer page, Integer limit);

}
